package com.huishu.user.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huishu.commons.pojo.dto.AddIntegrationDTO;
import com.huishu.commons.pojo.model.UserDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huishu.user.pojo.dto.UserPageListDTO;
import com.huishu.user.pojo.vo.UserPageListVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author generator@ljj
 * @since 2023-04-06
 */
public interface UserMapper extends BaseMapper<UserDO> {

    /**
     * 添加积分
     * @param addIntegrationDTO
     */
    void addIntegration(@Param("param") AddIntegrationDTO addIntegrationDTO);


    IPage<UserPageListVO> pageList(Page<UserPageListVO> page, @Param("params") UserPageListDTO userPageListDTO);
}
